package datatypes;

public class Producto {

	/**
	 * precio relativo a la unidad de medida Uom
	 */
	private Double price;
	/**
	 * nombre del producto
	 */
	private String name;

	/**
	 * stock del producto
	 */

	private Integer stock;
	
	/**
	 * codigo del producto
	 */
	private Integer code;

	public Producto() {
	}

	public Producto(String name, Double price, Integer stock, Integer code) {
		this.name = name;
		this.price = price;
		this.stock = stock;
		this.code = code;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getName() {
		return name;
	}

	public void setName(String newName) {
		name = newName;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

}
